package com.ling.dao;

import com.ling.bean.Area;
import com.ling.bean.UserArea;
import com.ling.bean.UserAreaExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserAreaMapper {
    //定制查询用户未关注的领域，并带上领域详细信息
    List<Area> selectUserUnstarAreasByUserId(String userId);

    //定制查询指定用户id的所有领域，并带上领域详细信息
    List<UserArea> selectUserAreasByUserId(String userId);

    long countByExample(UserAreaExample example);

    int deleteByExample(UserAreaExample example);

    int deleteByPrimaryKey(String id);

    int insert(UserArea record);

    int insertSelective(UserArea record);

    List<UserArea> selectByExample(UserAreaExample example);

    UserArea selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") UserArea record, @Param("example") UserAreaExample example);

    int updateByExample(@Param("record") UserArea record, @Param("example") UserAreaExample example);

    int updateByPrimaryKeySelective(UserArea record);

    int updateByPrimaryKey(UserArea record);
}